package org.jeecg.modules.grade.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: cou_grade
 * @author: baochangrong
 * @Date:   2022-02-10
 * @Version: V1.0
 */
@Data
@TableName("cou_grade")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="cou_grade对象", description="cou_grade")
public class CouGrade implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**年级编码*/
	@Excel(name = "年级编码", width = 15)
    @ApiModelProperty(value = "年级编码")
    private String gradeCode;
	/**年级名称*/
	@Excel(name = "年级名称", width = 15)
    @ApiModelProperty(value = "年级名称")
    private String gradeName;
    /**年级名称*/
    @Excel(name = "年级简称", width = 15)
    @ApiModelProperty(value = "年级简称")
    private String gradeAbbreviation;
	/**学校编码*/
	@Excel(name = "学校编码", width = 15)
    @ApiModelProperty(value = "学校编码")
    private String tenantId;
	/**年级阶段*/
	@Excel(name = "年级阶段", width = 15)
    @ApiModelProperty(value = "年级阶段")
    @Dict(dicCode = "grade_stage")
    private Integer gradeStage;
	/**下一年级编码*/
	@Excel(name = "下一年级编码", width = 15)
    @ApiModelProperty(value = "下一年级编码")
    @Dict(dicCode = "id",dicText = "grade_name",dictTable = "cou_grade")
    private String gradeNextCode;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer gradeOrder;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private Date createTime;
}
